<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="my-taglib" prefix="my"%>  
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>成都法和药业官方主页</title>
        <!-- Bootstrap framework -->
        
            <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
            <link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css" />
            
            <link rel="stylesheet" href="css/blue.css" />
            
            <link rel="stylesheet" href="lib/qtip2/jquery.qtip.min.css" />
            	
            <link rel="stylesheet" href="css/style.css" />
            	  
            <link rel="shortcut icon" href="favicon.ico" />
    
    	   <!-- 通用css -->
         	 <link rel="stylesheet" href="css_fahe/header.css" />
         	 <link rel="stylesheet" href="css_fahe/body.css" />
         	 <link rel="stylesheet" href="css_fahe/footer.css" />
        <!--[if lte IE 8]>
            <script src="js/ie/html5.js"></script>
			<script src="js/ie/respond.min.js"></script>
        <![endif]-->
		
    </head>
    <body>


	<div id="maincont" class="clearfix " style="margin-top: 0px;" >
			<!-- header -->
				<%@ include file="../inc/header.jsp"%>
				
				
			<div class="contenter">
				<div class="subNavBottom" id="drugNav">
						<ul style=" width:695px;" id="newstypeNav">
						<li id="subNav0">
							<a href="alldrugs">全部药品</a>
						</li>
						<li id="subNav1">
							<a href="alldrugs?type=1">基药</a>
						</li>
						<li id="subNav2">
							<a href="alldrugs?type=2">妇科</a>
						</li>
						<li id="subNav3">
							<a href="alldrugs?type=3">骨科</a>
						</li>
						<li id="subNav4">
							<a href="alldrugs?type=4">肿瘤科</a>
						</li>
						<li id="subNav5">
							<a href="alldrugs?type=5">中成药</a>
						</li>
						<li id="subNav6">
							<a href="alldrugs?type=6">消化科</a>
						</li>
						<li id="subNav7">
							<a href="alldrugs?type=7">眼科</a>
						</li>
						<li id="subNav8">
							<a href="alldrugs?type=8">其它</a>
						</li>
						</ul>
				</div>
				
				<div class="subTitle">
				我的位置:
				<a href="/cdfahe/index">首页</a>
				   >
				<a href="/cdfahe/alldrugs">产品展示</a>
				 >
				<a href="/cdfahe/alldrugs">产品展示</a>
			</div>
				<input type="hidden" name="typeid" id="typeid" value="${typeid }">
							<div class="drug">
										<input type="hidden" name="categoty" id="categotyid" value="${categoty }">
										  <c:forEach items="${rf.items}" var="du">  
												<div class="drugitem">  
													<img src="${du.goodspic}" >
													<div class="drugname">
														<%-- <a href="/cdfahe/drug/${du.drugtype}/${du.id}.html"><c:out value="${du.drugname}"/></a>  --%>
												  	 	 <a href="showdrug?drugid=${du.id }"><c:out value="${du.drugname}"/></a>  
												   </div>
												   <div class="drugdesc">
												  	 	<c:out value="${du.remark}"/>
												   </div>
												</div>  
										  </c:forEach>  
						</div>
						<div class="pagedir">
							<my:paging curr="${rf.currentPage}" total="${rf.pageCount}" size="${rf.pageSize}" href="alldrugs?type=${typeid }"/>  
						</div>
				</div>
				<%@ include file="../inc/footer.jsp"%>
		</div>
		
		
		
		
		
		
		
		
		
		
		
		
		
		
        <script src="js/jquery.min.js"></script>
        <script src="js/jquery.actual.min.js"></script>
        <script src="lib/validation/jquery.validate.min.js"></script>
		<script src="bootstrap/js/bootstrap.min.js"></script>
		<script src="js_fahe/header.js"></script>
		<script>
				$(document).ready(function(){
					/* var s = $(input[name='categoty']).val(); */
					var s = $("#typeid").val();
					var e = 'subNav'+s;
					$('#'+e).addClass('select');
					if (s == 2) {
						/* $('#lv2').attr("href","/cdfahe/listnews?categoty=2"); */
						$('#infospan').html('行业新闻');
					} else if(s == 3) {
						$('#infospan').html('政策法规');
					}else{
						$('#infospan').html('法和快讯');
					}
					/* var x= $('#lv2').html(); */
					
				});
			</script>  
    </body>
</html>
